//
//  Person.m
//  MRC
//
//  Created by hyl on 16/3/31.
//  Copyright © 2016年 hyl. All rights reserved.
//

#import "Person.h"

@implementation Person
+(instancetype)person
{
    return [[[self alloc]init]autorelease];
}
+(instancetype)personWithAge:(int)age
{
    return [[[self alloc]initWithAge:age]autorelease];
}
-(instancetype)initWithAge:(int)age
{
    if (self=[super init]) {
        self.age=age;
    }
    return self;
}
-(void)dealloc
{
    NSLog(@"%s",__func__);
    [super dealloc];
}
@end
